package com.example.mpdemo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.mpdemo.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Insert;

import java.util.List;

@Mapper
public interface UserMapper extends BaseMapper<User> {//继承方法，User是实体类
////查询所有用户
//    @Select("select * from user")
//    List<User> find();
////插入用户
//    @Insert("insert into user values(#{id},#{name},#{password},#{birthday})")
//    int insert(User user);//返回值is插入几条记录
}
